package JAVACORE_TRAINING.OOPS_CONCEPTS.ARRAY_AND_COLLECTIONS.STATIC_ARRAYS.EXCERCISES.EX03;

import java.util.Scanner;

public class Views {
    public static void main(String[] args) {
        int result;
        Scanner in = new Scanner(System.in);
        int[] arr = new int[10];

        System.out.println("Input value: ");
        for (int i = 0; i < arr.length; i++) {
            System.out.print("arr[" + i + "]: ");
            arr[i] = in.nextInt();
        }
        Controllers objCommons = new Controllers();
        result = objCommons.findMinValue(arr);

        // result = Commons.findMinValue(arr);
        System.out.println("The smallest element in an array of integers: " + result);
    }
}
